<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <menu id="main-menu">
    <item>
      <attribute name="label" translatable="yes">_Preferences</attribute>
      <attribute name="action">win.menu_preferences</attribute>
    </item>
    <item>
      <attribute name="label" translatable="yes">_About PrioNote</attribute>
      <attribute name="action">win.menu_about</attribute>
    </item>
  </menu>
  <menu id="note-menu">
    <item>
      <attribute name="label" translatable="yes">_Edit note</attribute>
      <attribute name="action">win.note_menu_edit</attribute>
    </item>
    <item>
      <attribute name="label" translatable="yes">_Delete note</attribute>
      <attribute name="action">win.note_menu_delete</attribute>
    </item>
  </menu>
  <template class="PrioNoteWindow" parent="AdwApplicationWindow">
    <property name="title" translatable="yes">PrioNote</property>
    <property name="default_width">650</property>
    <property name="default_height">550</property>
    <property name="content">
      <object class="AdwLeaflet" id="leaflet">
        <property name="can-navigate-back">True</property>
	  <child>
	    <object class="GtkBox">
	      <property name="orientation">vertical</property>
	      <property name="width-request">200</property>
	      <child>
		<object class="AdwHeaderBar">
		  <binding name="show-end-title-buttons">
		    <lookup name="folded">leaflet</lookup>
		  </binding>
		  <child type="start">
		    <object class="GtkToggleButton">
		      <property name="icon-name">list-add-symbolic</property>
		      <property name="tooltip-text" translatable="yes">New note</property>
		      <property name="action-name">win.new_note</property>
		    </object>
		  </child>
		  <child type="end">
		    <object class="GtkMenuButton">
		      <property name="icon-name">open-menu-symbolic</property>
		      <property name="menu-model">main-menu</property>
		      <property name="tooltip-text" translatable="yes">Main Menu</property>
		    </object>
		  </child>

		  
		</object>
	      </child>
	      <child>
		<object class="GtkScrolledWindow">
		  <property name="vexpand">True</property>
		  <property name="child">
		    <object class="GtkListBox" id="note_list">
		      <style>
			<class name="navigation-sidebar" />
		      </style>
		      <child>
		    <object class="AdwActionRow">
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		      </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="title">This is the title on the action row and I hope that this is added in the list as well and just not becomes a single entry</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>

		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">prio-high</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="name">prio-high</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">css style high tag This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		      <style>
			<class name="prio-high" />
		      </style>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">prio medium This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		       <style>
			 <class name="prio-medium" />
		       </style>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">prio low This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		       <style>
			 <class name="prio-low" />
		       </style>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>



		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  <child>
		    <object class="AdwActionRow">
		      <property name="css-classes">["boxed-list"]</property>
		      <property name="title">This is the title on the action row</property>
		      <property name="subtitle">2023-04-12 13:45</property>
		      <property name="subtitle-lines">1</property>
		      <property name="title-lines">1</property>
		    </object>
		  </child>
		  
		  
		    </object>
		  </property>
		</object>
	      </child>
	    </object>
	  </child>
	  <child>
	    <object class="AdwLeafletPage">
	      <property name="navigatable">false</property>
	      <property name="child">
	        <object class="GtkSeparator" />
	      </property>
	    </object>
	  </child>
	  <child>
	    <object class="GtkBox">
	      <property name="orientation">vertical</property>
	      <property name="hexpand">True</property>
	      <property name="width-request">250</property>
	      <child>
		<object class="AdwHeaderBar">
		  <property name="title-widget">
		    <object class="AdwWindowTitle" />
		  </property>
		  <child type="start">
		    <object class="GtkButton" id="back_button">
		      <binding name="visible">
			<lookup name="folded">leaflet</lookup>
		      </binding>
		      <property name="icon-name">go-previous-symbolic</property>
		      <property name="tooltip-text" translatable="yes">Back</property>
		    </object>
		  </child>
		  <child type="end">
		    <object class="GtkMenuButton">
		      <property name="icon-name">view-more-symbolic</property>
		      <property name="menu-model">note-menu</property>
		      <property name="tooltip-text" translatable="yes">Note Menu</property>
		    </object>
		  </child>
		</object>
	      </child>


	      
	      <child>

		    

		
		<object class="GtkLabel">
		  <property name="label">
		    Priority: Low
		  </property>
		  <style>
		    <class name="note-text" />
		  </style>
		</object>
	      </child>
	      <child>
		<object class="GtkScrolledWindow">
		  <property name="vexpand">True</property>
		  <property name="child">



		<object class="GtkTextView">
		  <property name="margin-start">2</property>
		  <property name="margin-end">2</property>
		  <property name="margin-top">2</property>
		  <property name="margin-bottom">2</property>
		  <property name="editable">false</property>
		  <style>
		    <class name="note-text" />
		  </style>
		  <property name="buffer"><object class="GtkTextBuffer"><property name="text">This is the text for the note
		  this is second  row
		  third row
		  I
		  add
		  a
		  number
		  of
		  rows
		  to
		  see
		  if
		  the
		  window
		  expand
		  or
		  if
		  it
		  becomes
		  scrollable
		  I
		  think
		  it
		  should
		  become
		  scrollable
		  and
		  not
		  expand
		  and
		  more
		  and
		  more
		  and
		  more
		  and
		  more
		  and
		  more
		  and
		  more
		  and
		  more
		  and
		  more
		  and
		  more
		  last line</property></object></property>
		<!-- font-size -->
		</object>


		  </property>
		</object>
		
	      </child>
	    </object>
	  </child>
      </object>
    </property>
  </template>
</interface>
